// 入口文件
import Vue from 'vue'


import router from './router'

// 导入格式化时间插件
import moment from 'moment'
// 定义全局过滤器
Vue.filter('dataFormat', function(dataStr, pattern = "YYYY-MM-DD HH:mm:ss"){
    return moment(dataStr).format(pattern)
})


import VueResource from 'vue-resource'
Vue.use(VueResource)

Vue.http.options.emulateJSON = true;
// 设置请求的根路径
Vue.http.options.root = 'http://www.liulongbin.top:3005'



import './lib/mui/css/mui.min.css'//引入mui底部边框的样式
import './lib/mui/css/icons-extra.css'



import { Header,Swipe, SwipeItem, Button } from 'mint-ui'//引入mui头部的样式
Vue.component( Header.name, Header )
Vue.component(Swipe.name, Swipe)
Vue.component(SwipeItem.name, SwipeItem)
Vue.component(Button.name, Button)



import app from './App.vue'
let vm = new Vue({
    el:'#app',
    router,
    render: c => c(app),
     
})
